package com.bw.lib_net.interceptor

import com.bw.lib_storage.UserMMKV
import okhttp3.Interceptor
import okhttp3.Response

/**
 * @author ytx
 * @date 2025-09-16 14:36
 * @description token拦截器
 */
class TokenInterceptor: Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val request = chain.request().newBuilder()
            .addHeader("Authorization",UserMMKV.token)
            .build()
        return chain.proceed(request)
    }
}